package com.supermap.business.epvproduct.cq;

import com.alibaba.dubbo.config.annotation.Reference;
import com.supermap.dataservice.util.Table;
import com.supermap.dubbo.api.cq.epproduct.CountEPCountSumService;
import com.supermap.dubbo.api.cq.epproduct.CountEPV;
import com.supermap.dubbo.api.farmland.FarmlandService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @author aqua
 * @description
 * @date 2018年11月09 下午 5:53
 * @email 1301584033@qq.com
 */
@Controller
@RequestMapping("/epvproduct/cq")
public class CountEPCountSumController {
    @Reference(timeout = 100000)
    private CountEPCountSumService countEPCountSumService;
    /**
     * 统计全重庆PEV总数
     * */
    @GetMapping("/getCqPEVProductCountSum")
    @ResponseBody
   public Table getCqPEVProductCountSum(String beginTime, String endTime){
       return countEPCountSumService.getCqPEVProductCountSum(beginTime,endTime);
   }

    /**
     * 统计产品分类
     * */
    @GetMapping("/getCqProductListByAreaCode")
    @ResponseBody
    public Table getCqProductListByAreaCode(String beginTime,String endTime,String areaCode){
        return countEPCountSumService.getCqProductListByAreaCode(beginTime,endTime,areaCode);
    }


    /**
     * 统计产品详情
     * */
    @GetMapping("/getCqProductListByAreaCodeDetails")
    @ResponseBody
    public Table getCqProductListByAreaCodeDetails(String beginTime,String endTime,String areaCode, String baseClassId){
        return countEPCountSumService.getCqProductListByAreaCodeDetails(beginTime,endTime,areaCode,baseClassId);
    }


}
